﻿// owner 蒋家伟

#pragma once
#include "Device_home.h"

namespace jsdk
{
    class IDevice;
    // 所有设备外部数据的基类
    class DEVICE_EXPORT IDeviceExternalData
    {
    public:
        virtual ~IDeviceExternalData() {}

        /// \ brief 获取当前外部数据所属的设备
        virtual const IDevice* getOwnerDevice() const = 0;

        /// \ brief 设置所属的组件
        virtual bool setOwnerDevice(IDevice* pOwnerDevice) = 0;

        /// \ brief 设备停止工作回调
        virtual void stop() const = 0;
    };
}